package com.onedec.entity;

import java.util.ArrayList;
import java.util.List;

public class OnedecProjectDesignMaterialsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecProjectDesignMaterialsExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDesignIdIsNull() {
            addCriterion("design_id is null");
            return (Criteria) this;
        }

        public Criteria andDesignIdIsNotNull() {
            addCriterion("design_id is not null");
            return (Criteria) this;
        }

        public Criteria andDesignIdEqualTo(Integer value) {
            addCriterion("design_id =", value, "designId");
            return (Criteria) this;
        }

        public Criteria andDesignIdNotEqualTo(Integer value) {
            addCriterion("design_id <>", value, "designId");
            return (Criteria) this;
        }

        public Criteria andDesignIdGreaterThan(Integer value) {
            addCriterion("design_id >", value, "designId");
            return (Criteria) this;
        }

        public Criteria andDesignIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("design_id >=", value, "designId");
            return (Criteria) this;
        }

        public Criteria andDesignIdLessThan(Integer value) {
            addCriterion("design_id <", value, "designId");
            return (Criteria) this;
        }

        public Criteria andDesignIdLessThanOrEqualTo(Integer value) {
            addCriterion("design_id <=", value, "designId");
            return (Criteria) this;
        }

        public Criteria andDesignIdIn(List<Integer> values) {
            addCriterion("design_id in", values, "designId");
            return (Criteria) this;
        }

        public Criteria andDesignIdNotIn(List<Integer> values) {
            addCriterion("design_id not in", values, "designId");
            return (Criteria) this;
        }

        public Criteria andDesignIdBetween(Integer value1, Integer value2) {
            addCriterion("design_id between", value1, value2, "designId");
            return (Criteria) this;
        }

        public Criteria andDesignIdNotBetween(Integer value1, Integer value2) {
            addCriterion("design_id not between", value1, value2, "designId");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdIsNull() {
            addCriterion("design_project_id is null");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdIsNotNull() {
            addCriterion("design_project_id is not null");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdEqualTo(Integer value) {
            addCriterion("design_project_id =", value, "designProjectId");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdNotEqualTo(Integer value) {
            addCriterion("design_project_id <>", value, "designProjectId");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdGreaterThan(Integer value) {
            addCriterion("design_project_id >", value, "designProjectId");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("design_project_id >=", value, "designProjectId");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdLessThan(Integer value) {
            addCriterion("design_project_id <", value, "designProjectId");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("design_project_id <=", value, "designProjectId");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdIn(List<Integer> values) {
            addCriterion("design_project_id in", values, "designProjectId");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdNotIn(List<Integer> values) {
            addCriterion("design_project_id not in", values, "designProjectId");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("design_project_id between", value1, value2, "designProjectId");
            return (Criteria) this;
        }

        public Criteria andDesignProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("design_project_id not between", value1, value2, "designProjectId");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdIsNull() {
            addCriterion("design_materials_id is null");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdIsNotNull() {
            addCriterion("design_materials_id is not null");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdEqualTo(Integer value) {
            addCriterion("design_materials_id =", value, "designMaterialsId");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdNotEqualTo(Integer value) {
            addCriterion("design_materials_id <>", value, "designMaterialsId");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdGreaterThan(Integer value) {
            addCriterion("design_materials_id >", value, "designMaterialsId");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("design_materials_id >=", value, "designMaterialsId");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdLessThan(Integer value) {
            addCriterion("design_materials_id <", value, "designMaterialsId");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdLessThanOrEqualTo(Integer value) {
            addCriterion("design_materials_id <=", value, "designMaterialsId");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdIn(List<Integer> values) {
            addCriterion("design_materials_id in", values, "designMaterialsId");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdNotIn(List<Integer> values) {
            addCriterion("design_materials_id not in", values, "designMaterialsId");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdBetween(Integer value1, Integer value2) {
            addCriterion("design_materials_id between", value1, value2, "designMaterialsId");
            return (Criteria) this;
        }

        public Criteria andDesignMaterialsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("design_materials_id not between", value1, value2, "designMaterialsId");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityIsNull() {
            addCriterion("design_quantity is null");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityIsNotNull() {
            addCriterion("design_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityEqualTo(Integer value) {
            addCriterion("design_quantity =", value, "designQuantity");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityNotEqualTo(Integer value) {
            addCriterion("design_quantity <>", value, "designQuantity");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityGreaterThan(Integer value) {
            addCriterion("design_quantity >", value, "designQuantity");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("design_quantity >=", value, "designQuantity");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityLessThan(Integer value) {
            addCriterion("design_quantity <", value, "designQuantity");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("design_quantity <=", value, "designQuantity");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityIn(List<Integer> values) {
            addCriterion("design_quantity in", values, "designQuantity");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityNotIn(List<Integer> values) {
            addCriterion("design_quantity not in", values, "designQuantity");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityBetween(Integer value1, Integer value2) {
            addCriterion("design_quantity between", value1, value2, "designQuantity");
            return (Criteria) this;
        }

        public Criteria andDesignQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("design_quantity not between", value1, value2, "designQuantity");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1IsNull() {
            addCriterion("design_design1 is null");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1IsNotNull() {
            addCriterion("design_design1 is not null");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1EqualTo(String value) {
            addCriterion("design_design1 =", value, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1NotEqualTo(String value) {
            addCriterion("design_design1 <>", value, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1GreaterThan(String value) {
            addCriterion("design_design1 >", value, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1GreaterThanOrEqualTo(String value) {
            addCriterion("design_design1 >=", value, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1LessThan(String value) {
            addCriterion("design_design1 <", value, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1LessThanOrEqualTo(String value) {
            addCriterion("design_design1 <=", value, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1Like(String value) {
            addCriterion("design_design1 like", value, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1NotLike(String value) {
            addCriterion("design_design1 not like", value, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1In(List<String> values) {
            addCriterion("design_design1 in", values, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1NotIn(List<String> values) {
            addCriterion("design_design1 not in", values, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1Between(String value1, String value2) {
            addCriterion("design_design1 between", value1, value2, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign1NotBetween(String value1, String value2) {
            addCriterion("design_design1 not between", value1, value2, "designDesign1");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2IsNull() {
            addCriterion("design_design2 is null");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2IsNotNull() {
            addCriterion("design_design2 is not null");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2EqualTo(String value) {
            addCriterion("design_design2 =", value, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2NotEqualTo(String value) {
            addCriterion("design_design2 <>", value, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2GreaterThan(String value) {
            addCriterion("design_design2 >", value, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2GreaterThanOrEqualTo(String value) {
            addCriterion("design_design2 >=", value, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2LessThan(String value) {
            addCriterion("design_design2 <", value, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2LessThanOrEqualTo(String value) {
            addCriterion("design_design2 <=", value, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2Like(String value) {
            addCriterion("design_design2 like", value, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2NotLike(String value) {
            addCriterion("design_design2 not like", value, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2In(List<String> values) {
            addCriterion("design_design2 in", values, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2NotIn(List<String> values) {
            addCriterion("design_design2 not in", values, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2Between(String value1, String value2) {
            addCriterion("design_design2 between", value1, value2, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign2NotBetween(String value1, String value2) {
            addCriterion("design_design2 not between", value1, value2, "designDesign2");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3IsNull() {
            addCriterion("design_design3 is null");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3IsNotNull() {
            addCriterion("design_design3 is not null");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3EqualTo(String value) {
            addCriterion("design_design3 =", value, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3NotEqualTo(String value) {
            addCriterion("design_design3 <>", value, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3GreaterThan(String value) {
            addCriterion("design_design3 >", value, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3GreaterThanOrEqualTo(String value) {
            addCriterion("design_design3 >=", value, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3LessThan(String value) {
            addCriterion("design_design3 <", value, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3LessThanOrEqualTo(String value) {
            addCriterion("design_design3 <=", value, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3Like(String value) {
            addCriterion("design_design3 like", value, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3NotLike(String value) {
            addCriterion("design_design3 not like", value, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3In(List<String> values) {
            addCriterion("design_design3 in", values, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3NotIn(List<String> values) {
            addCriterion("design_design3 not in", values, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3Between(String value1, String value2) {
            addCriterion("design_design3 between", value1, value2, "designDesign3");
            return (Criteria) this;
        }

        public Criteria andDesignDesign3NotBetween(String value1, String value2) {
            addCriterion("design_design3 not between", value1, value2, "designDesign3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}